module.exports = (app) => {
  const { router, controller } = app;
  router.post("/reg", controller.user.reg);//注册
  router.post("/login", controller.user.login);//登陆
  router.post("/logout", controller.user.logout);//退出
  router.get("/getUsers", controller.user.getUsers);//获取用户列表
  router.get("/getAllUsers", controller.user.getAllUsers);//获取用户列表
  router.get("/getUserOne", controller.user.getUserOne);//获取用户信息
  router.post("/updateUser", controller.user.updateUser);//修改个人信息
  router.post("/removeUser", controller.user.removeUser);//删除用户
  router.get("/getMenuByUserId", controller.user.getMenuByUserId);
};
